package com.codedancer.campus.manager.service.vo.commodity;

import com.codedancer.campus.enums.CommodityStatus;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

@Data
@ApiModel("商品分页Vo")
public class CommodityPageVo {

    @ApiModelProperty("商品uuid")
    private String uuid;

    @ApiModelProperty("商品标题")
    private String title;

    @ApiModelProperty("商品原价")
    private Integer originalPrice;

    @ApiModelProperty("商品现价")
    private Integer currentPrice;

    @ApiModelProperty("商品分类")
    private String categoryName;

    @ApiModelProperty("发布人昵称")
    private String publishNickName;

    @ApiModelProperty("发布人学校名称")
    private String publishSchoolName;

    @ApiModelProperty("商品状态 1表示待审核 2未通过 3表示上架 4表示下架")
    private CommodityStatus status;

    @ApiModelProperty("创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("是否同步到自由广场")
    private Boolean isSyncLibertySquare;

    @ApiModelProperty("联系电话")
    private String contactPhone;
}
